if (sidebar == bottom) {
	@import 'sidebar-bottom';
} else {
	@import 'sidebar-aside';
}

.widget {
	@extend $base-style;
	line-height: line-height;
	word-wrap: break-word;
	font-size: 0.9em;

	ul, ol {
		list-style: none;
		margin: 0;

		ul, ol {
			margin: 0 20px;
		}

		ul {
			list-style: disc;
		}

		ol {
			list-style: decimal;
		}
	}
}

.category-list-count, .tag-list-count, .archive-list-count {
	padding-left: 5px;
	color: color-grey;
	font-size: 0.85em;

	&:before {
		content: '(';
	}

	&:after {
		content: ')';
	}
}

.tagcloud {
	a {
		margin-right: 5px;
		display: inline-block;
	}
}

.sidebar-fixed {
	position: fixed;
	top: 50px;
}

.sao-sidebar-box {
	margin-top: 0px;
	margin-bottom: 50px;
	padding: 10px;
	background-color: white;
	width: 264px;
	box-shadow: 0px 0px 6px #ccc;
	@extend $block;

	@media mq-mobile {
		width: auto
	}

	.box-top {
		width: 100%;
		display: flex;
		padding-bottom: 10px;
		border-bottom: 1px solid #eee;

		.userinfo {
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			padding-left: 20px;
			letter-spacing: 1px;

			.level {
				span {
					background-color: red;
					border-radius: 4px;
					padding-left: 4px;
					padding-right: 4px;
					color: white;
					font-weight: 600;
				}
			}
		}
	}

	.box-mid {
		letter-spacing: 1px;
		border-bottom: 1px solid #eee;
		padding-bottom: 10px;

		.mid-item {
			font-size: 12px;
			margin-top: 10px;
			color: rgb(0, 0, 0 0.5);
		}
	}

	.box-bot {
		display: flex;
		padding-bottom: 10px;
		border-bottom: 1px solid #eee;
		flex-wrap: wrap;

		.bot-item {
			display: flex;
			justify-content: center;
			align-items: center;
			margin-top: 10px;
			margin-right: 5px;
			padding: 4px 7px;
			background-color: #eee;
			cursor: pointer;
			border-radius: 5px;

			img {
				margin-right: 2px;
				border-radius: 50%;
			}

			span {
				font-size: 16px;
				line-height: 16px;
			}

			&:hover {
				background-color: #ccc;
			}
		}
	}

	.box-tag {
		display: flex;
		flex-wrap: wrap;
	}
}

@keyframes showSidebar {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}
